<%@ Page Title="Current Sections" Language="C#" MasterPageFile="~/masterpage.master" AutoEventWireup="true" CodeFile="Sections.aspx.cs" Inherits="Sections" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
	<script language="javascript" type="text/javascript">
	  var controldivname = 'ctl00_ContentPlaceHolder1_rgSections';
  </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <telerik:radscriptmanager ID="RadScriptManager1" Runat="server">
  </telerik:radscriptmanager>

  <table style="width:900px;">
        <tr>
            <td align="left">
                <telerik:radgrid ID="rgSections" runat="server" AllowPaging="True" 
		                AllowSorting="True" Width="100%" PageSize="50"
	                    CssClass="stats"	GridLines="None" AllowAutomaticUpdates="True" AutoGenerateColumns="False"
                      onsortcommand="rgSections_SortCommand" onpageindexchanged="rgSections_PageIndexChanged"
                      onitemdatabound="rgSections_ItemDataBound">

                    <HeaderStyle  Font-Bold="True" Font-Underline="False" Font-Size="9" HorizontalAlign="Center"  />
                    <HeaderContextMenu>
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                    </HeaderContextMenu>
                    <FilterMenu>
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                    </FilterMenu>
                    <ItemStyle BackColor="Silver" />
	                  <AlternatingItemStyle BackColor="LightGray" />

                    <MasterTableView>
		                <Columns>
                      <telerik:GridHyperLinkColumn DataNavigateUrlFields="SECTION_ID" 
		  		              DataNavigateUrlFormatString="entry.aspx?sectionId={0}" DataTextField="CODE" 
			  	              SortExpression="CODE" HeaderText="Code" HeaderStyle-Width="100px">
                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" /> 
				              </telerik:GridHyperLinkColumn>
			                <telerik:GridHyperLinkColumn  DataNavigateUrlFields="SECTION_ID" 
				                DataNavigateUrlFormatString="entry.aspx?sectionId={0}" DataTextField="SECTION_TITLE" 
				                SortExpression="SECTION_TITLE" HeaderText="Section Title" HeaderStyle-Width="400px">
				                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" /> 
			                </telerik:GridHyperLinkColumn>	
                      <telerik:GridTemplateColumn HeaderText="Teacher" SortExpression="Teacher_Name" HeaderStyle-Width="400px" >
				                <EditItemTemplate>
  					              <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("TEACHER_NAME") %>'></asp:TextBox>
				                </EditItemTemplate>
				                <ItemTemplate>
  					              <asp:Label ID="Label2" runat="server" Text='<%# Bind("TEACHER_NAME") %>'></asp:Label>
				                </ItemTemplate>
				                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" /> 
			                </telerik:GridTemplateColumn>
                    </Columns>
	                </MasterTableView>
  
                  <ClientSettings>
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling>
                  </ClientSettings>

                </telerik:radgrid>
            </td>
        </tr>
    </table>
</asp:Content>







